package com.taotao.job.rpc.server.example;

import com.taotao.job.rpc.server.example.facade.ShopService;
import com.taotao.job.rpc.sofabolt.SofaboltProviderServer;

/**
 * 简单的provider测试
 *
 * @author fanbeibei
 * @date 2020/10/31 21:07
 */
public class ServerExample {

    public static void main(String[] args) {
        int port = 8888;
        SofaboltProviderServer providerServer = new SofaboltProviderServer(port);

        ShopServiceImpl shopService = new ShopServiceImpl();
        providerServer.addProviderService(shopService, ShopService.class);

        providerServer.start();
        System.out.println("---------------start Ok!");
    }

}
